<div id="reg_container">
    <?=form_open('login/do_reg')?>
    <fieldset>
        <legend>Required Information</legend>
        <label>Username</label>
        <?= form_input(array('name' => 'reg_username', 'class' => 'reg_text'))?>
        <label>Password</label>
        <?= form_password(array('name' => 'reg_pw', 'class' => 'reg_text'))?>
        <label>Password Confirmation</label>
        <?= form_password(array('name' => 'reg_pw2', 'class' => 'reg_text'))?>
        <label>Email</label>
        <?= form_input(array('name' => 'reg_email', 'class' => 'reg_text'))?>
    </fieldset>

    <fieldset>
        <legend>Optional Information</legend>
        <label>First Name</label>
        <?= form_input(array('name' => 'reg_first_name', 'class' => 'reg_text'))?>
        <label>Last Name</label>
        <?= form_input(array('name' => 'reg_last_name', 'class' => 'reg_text'))?>
        <label>Age</label>
        <?= form_input(array('name' => 'reg_age', 'class' => 'reg_text'))?>
        <label>School</label>
        <?= form_input(array('name' => 'reg_school', 'class' => 'reg_text'))?>
    </fieldset>
    <input id="reg_submit" value="Submit and Register" type="submit"/>
    <?=form_close()?>
    <?php echo validation_errors('<p class="error">'); ?>
</div>